package main

import (
	"time"

	logger "gitee.com/mayxiangfan/go-study/logger"
)

// Log 日志系统
var Log logger.Logger

func init() {
	// Log = logger.NewFileLog("d:/", logger.LevelDebug)
	Log = logger.NewConsoleLogger(logger.LevelDebug)
	Log.Trace("log日志初始化完毕！")
}

func main() {
	for {
		//TODO 准备做的
		Log.Trace("运行中！")
		Log.Debug("运行中！%s", "哈哈哈")
		Log.Info("运行中！")
		Log.Error("运行中！")
		time.Sleep(time.Second * 2)

	}
}
